import IMG_ICON_ASSET_BORROW from '/@/assets/image/icon/asset-borrow.png';
import IMG_ICON_ASSET_RECEIVE from '/@/assets/image/icon/asset-receive.png';
import IMG_ICON_ASSET_ALLOCATION from '/@/assets/image/icon/asset-allocation.png';
import IMG_ICON_ASSET_HANDLE from '/@/assets/image/icon/asset-handle.png';
import IMG_ICON_ASSET_ALTER from '/@/assets/image/icon/asset-alter.png';
import IMG_ICON_ASSET_SIGN_IN from '/@/assets/image/icon/asset-sign-in.png';
import IMG_ICON_ASSET_APPROVE from '/@/assets/image/icon/asset-approve.png';

/**
 * 资产变动菜单
 */
const ASSET_CHANGE_MENU = [
  {
    key: 1,
    label: '设备借用',
    img: IMG_ICON_ASSET_BORROW,
    to: '/pages/asset-change/borrow-edit/index',
  },
  {
    key: 2,
    label: '设备领用',
    img: IMG_ICON_ASSET_RECEIVE,
    to: '/pages/asset-change/receive-edit/index',
  },
  {
    key: 3,
    label: '设备调拨',
    img: IMG_ICON_ASSET_ALLOCATION,
    to: '/pages/asset-change/allocation-edit/index',
  },
  {
    key: 4,
    label: '设备处置',
    img: IMG_ICON_ASSET_HANDLE,
    to: '/pages/asset-change/handle-edit/index',
  },
  {
    key: 5,
    label: '设备变更',
    img: IMG_ICON_ASSET_ALTER,
    to: '/pages/asset-change/alter-edit/index',
  },
  {
    key: 6,
    label: '设备签收',
    img: IMG_ICON_ASSET_SIGN_IN,
    to: '/pages/asset-change/allocation-list/index?pageType=sign-in',
  },
  {
    key: 7,
    label: '变动审批',
    img: IMG_ICON_ASSET_APPROVE,
    to:
      process.env.TARO_ENV === 'weapp'
        ? '/pages/asset-change/approve-list/wx/index'
        : '/pages/asset-change/approve-list/index',
  },
];

export { ASSET_CHANGE_MENU };
